﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace SPIWareMVVM.Views.ValidationRules
{
    public class EmptyStringRule : ValidationRule
    {
        public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
        {
            string strValue = value as string;
            if (!string.IsNullOrEmpty(strValue))
            {
                return new ValidationResult(true, null);
            }
            return new ValidationResult(false, "You must provide information here!");
        }
    }
}
